const path = require('path')

module.exports = {
  mode: "none",
  // entry: "./src/main.css", // 可以正常工作，显示红色背景
  entry: "./src/index.js",
  output: {
    filename: "bundle.js",
    path: path.join(__dirname, "output")
  },
  module:{
    rules:[{
      test: /.css$/,
      use:[
        'style-loader',
        'css-loader'
      ]
    }]
  }
}